#include <transformation.h>
Inheritance diagram for mudbox::Transformation:
It represents transformations as a combination of scaling, rotation, and translation, applied in that order.
The position of a GroupNode is determined solely by the matrix of its parent Transformation node. In other words, while it is possible to arrange scene objects into a hierarchy, the transformation matrices up the hierarchy are NOT composited together to produce a final transformation.
Public Member Functions |
|
virtual const mudbox::ClassDesc * | RuntimeClass (void) const |
virtual Vector | TransformToWorld (const Vector &vL, float fW=1.0f) |
Transforms a Vector from local space into
world space. |
|
virtual Vector | TransformToLocal (const Vector &vW, float fW=1.0f) |
Transforms a Vector from world space into
local space. |
|
virtual Matrix | LocalToWorldMatrix (void) |
Returns a Matrix that can transform points
or vectors from local space into world space. |
|
virtual Matrix | WorldToLocalMatrix (void) |
Returns a Matrix that can transform points
or vectors from world space into local space. |
|
virtual void | SetLocalToWorldMatrix (const Matrix &mMatrix) |
Sets the Matrix for this object that will
transform points and vectors from local space to world space.
|
|
virtual Vector | Rotation (void) const |
Returns the rotation component of the
current transformation as yaw-pitch-roll (x,y,z) values in a
Vector.
|
|
virtual void | SetRotation (const Vector &vYawPitchRoll) |
Sets the rotation component of the current
transformation. |
|
virtual void | SetRotation (const Matrix &mRotation) |
Sets the rotation component of the current
transformation by specifying a rotation matrix. |
|
virtual void | AddRotation (const Vector &vYawPitchRoll, bool bAfter=false) |
Adds additional rotation to the current
transformation. |
|
virtual Vector | Position (void) const |
Returns the current position (translation)
of the object. |
|
virtual void | SetPosition (const Vector &vVector) |
Sets the position (translation) of the
object. |
|
virtual Vector | Scale (void) const |
Returns the scale factors of the current
transformation. |
|
virtual void | SetScale (const Vector &vScale) |
Sets the scale factors of the current
transformation. |
|
Static Public Member Functions |
|
const mudbox::ClassDesc * | StaticClass (void) |
mudbox::Node * | CreateInstances (unsigned int iCount=1) |
|
Reimplemented from mudbox::GroupNode. 00050 : |
|
Reimplemented from mudbox::GroupNode. |
|
Reimplemented from mudbox::GroupNode. |
|
Transforms a Vector from local space into world space. The Vector class in this SDK is used to represent both points in 3d space, and true vectors (which have directional, but no positional information.) By default, this method assumes that you are transforming a point, and so sets the W value to 1.0. If you are in fact transforming a true vector, you should set fW to 0.
|
|
Transforms a Vector from world space into local space. The Vector class in this SDK is used to represent both points in 3d space, and true vectors (which have directional, but no positional information.) By default, this method assumes that you are transforming a point, and so sets the W value to 1.0. If you are in fact transforming a true vector, you should set fW to 0.
|
|
Returns a Matrix that can transform points or vectors from local space into world space. |
|
Returns a Matrix that can transform points or vectors from world space into local space. |
|
Sets the Matrix for this object that will transform points and vectors from local space to world space.
|
|
Returns the rotation component of the current transformation as yaw-pitch-roll (x,y,z) values in a Vector. The return values are in degrees. |
|
Sets the rotation component of the current transformation. The scaling and translation remain unaffected.
|
|
Sets the rotation component of the current transformation by specifying a rotation matrix. The scaling and translation remain unaffected.
|
|
Adds additional rotation to the current transformation. The scaling and translation remain unaffected.
|
|
Returns the current position (translation) of the object. (That is, the position of the origin after being transformed from local space to world space.) |
|
Sets the position (translation) of the object.
|
|
Returns the scale factors of the current transformation. |
|
Sets the scale factors of the current transformation.
|